import { createApp } from 'vue'

// import './style.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 导入 icon 图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import router from './router/router'

import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus)

// 注册 icon 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router)
app.mount('#app')
